import { Component, MeshRenderer, _decorator } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('HeatMapPoint3D')
export class HeatMapPoint3D extends Component {
    public setIntensity(intensity: number) {
        const meshRenderer = this.getComponent(MeshRenderer);

        meshRenderer.getMaterialInstance(0).setProperty('alphaFix', intensity);
    }
}
